import mongoose from "./dao";

var Schema = mongoose.Schema;

var cms_dynamic_circleSchema = new Schema(
  {
    id: { type: String },
    user_id: { type: Number },
    exhibitor_id: { type: String },
    site_id: { type: String },
    content: { type: String },
    images: { type: String },
    video_id: { type: String },
    create_time: { type: Date, default: Date.now },
    update_time: { type: String },
    creator: { type: String },
    mender: { type: String }
    // site_id: { type: Date, default: Date.now }
  },
  { versionKey: false }
); //去掉版本控制

const cms_dynamic_circle = mongoose.model(
  "cms_dynamic_circle",
  cms_dynamic_circleSchema
);

export default cms_dynamic_circle;
